\hypertarget{network_8h}{}\section{network/network.h File Reference}
\label{network_8h}\index{network/network.\+h@{network/network.\+h}}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{earth2wireframe_8c_ad0fe97585b8891f5e4f2b9a6426330a4}{M\+E\+M\+S\+P\+A\+CE} char $\ast$ \hyperlink{network_8h_a462d02d06dadbf41aa44824e310aaaf0}{ipv4\+\_\+2str} (\hyperlink{send_8c_a435d1572bf3f880d55459d9805097f62}{uint32\+\_\+t} ip)
\item 
\hyperlink{earth2wireframe_8c_ad0fe97585b8891f5e4f2b9a6426330a4}{M\+E\+M\+S\+P\+A\+CE} void \hyperlink{network_8h_a666e24dd2e3ea9aa24fdd5fc0089aa13}{poll\+\_\+network\+\_\+message} (\hyperlink{structwindow}{window} $\ast$win)
\item 
void \hyperlink{network_8h_a9aaa25ef08319cd23e2cdee0b6405de5}{ntp\+\_\+setup} (void)
\item 
\hyperlink{earth2wireframe_8c_ad0fe97585b8891f5e4f2b9a6426330a4}{M\+E\+M\+S\+P\+A\+CE} void \hyperlink{network_8h_af65ec795e7e4486dd8bb58d757fb6067}{my\+\_\+receive} (void $\ast$arg, char $\ast$pdata, unsigned short len)
\item 
\hyperlink{earth2wireframe_8c_ad0fe97585b8891f5e4f2b9a6426330a4}{M\+E\+M\+S\+P\+A\+CE} void \hyperlink{network_8h_a33001f6e7c0326d6a8f20acbc62a1b3a}{wifi\+\_\+event\+\_\+cb} (System\+\_\+\+Event\+\_\+t $\ast$event\+\_\+p)
\begin{DoxyCompactList}\small\item\em W\+I\+FI Event Callback. \end{DoxyCompactList}\item 
\hyperlink{earth2wireframe_8c_ad0fe97585b8891f5e4f2b9a6426330a4}{M\+E\+M\+S\+P\+A\+CE} void \hyperlink{network_8h_a863429734cede00a72890923a53dad24}{setup\+\_\+networking} (void)
\begin{DoxyCompactList}\small\item\em Code fragments if(!wifi\+\_\+station\+\_\+dhcpc\+\_\+stop()) printf( \char`\"{}\+E\+R\+R\+O\+R wifi\+\_\+station\+\_\+dhcpc\+\_\+stop() \textbackslash{}n \char`\"{});. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{network_8h_a216a891e9fdcc4083d4fb922eacb63f0}{network\+\_\+init}
\end{DoxyCompactItemize}


\subsection{Function Documentation}
\index{network.\+h@{network.\+h}!ipv4\+\_\+2str@{ipv4\+\_\+2str}}
\index{ipv4\+\_\+2str@{ipv4\+\_\+2str}!network.\+h@{network.\+h}}
\subsubsection[{\texorpdfstring{ipv4\+\_\+2str(uint32\+\_\+t ip)}{ipv4_2str(uint32_t ip)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf M\+E\+M\+S\+P\+A\+CE} char$\ast$ ipv4\+\_\+2str (
\begin{DoxyParamCaption}
\item[{{\bf uint32\+\_\+t}}]{ip}
\end{DoxyParamCaption}
)}\hypertarget{network_8h_a462d02d06dadbf41aa44824e310aaaf0}{}\label{network_8h_a462d02d06dadbf41aa44824e310aaaf0}


Definition at line 66 of file network.\+c.



Referenced by ntp\+\_\+setup(), and user\+\_\+loop().

\index{network.\+h@{network.\+h}!my\+\_\+receive@{my\+\_\+receive}}
\index{my\+\_\+receive@{my\+\_\+receive}!network.\+h@{network.\+h}}
\subsubsection[{\texorpdfstring{my\+\_\+receive(void $\ast$arg, char $\ast$pdata, unsigned short len)}{my_receive(void *arg, char *pdata, unsigned short len)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf M\+E\+M\+S\+P\+A\+CE} void my\+\_\+receive (
\begin{DoxyParamCaption}
\item[{void $\ast$}]{arg, }
\item[{char $\ast$}]{pdata, }
\item[{unsigned short}]{len}
\end{DoxyParamCaption}
)}\hypertarget{network_8h_af65ec795e7e4486dd8bb58d757fb6067}{}\label{network_8h_af65ec795e7e4486dd8bb58d757fb6067}
\index{network.\+h@{network.\+h}!ntp\+\_\+setup@{ntp\+\_\+setup}}
\index{ntp\+\_\+setup@{ntp\+\_\+setup}!network.\+h@{network.\+h}}
\subsubsection[{\texorpdfstring{ntp\+\_\+setup(void)}{ntp_setup(void)}}]{\setlength{\rightskip}{0pt plus 5cm}void ntp\+\_\+setup (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\hypertarget{network_8h_a9aaa25ef08319cd23e2cdee0b6405de5}{}\label{network_8h_a9aaa25ef08319cd23e2cdee0b6405de5}


Definition at line 176 of file user\+\_\+main.\+c.



Referenced by user\+\_\+loop().

\index{network.\+h@{network.\+h}!poll\+\_\+network\+\_\+message@{poll\+\_\+network\+\_\+message}}
\index{poll\+\_\+network\+\_\+message@{poll\+\_\+network\+\_\+message}!network.\+h@{network.\+h}}
\subsubsection[{\texorpdfstring{poll\+\_\+network\+\_\+message(window $\ast$win)}{poll_network_message(window *win)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf M\+E\+M\+S\+P\+A\+CE} void poll\+\_\+network\+\_\+message (
\begin{DoxyParamCaption}
\item[{{\bf window} $\ast$}]{win}
\end{DoxyParamCaption}
)}\hypertarget{network_8h_a666e24dd2e3ea9aa24fdd5fc0089aa13}{}\label{network_8h_a666e24dd2e3ea9aa24fdd5fc0089aa13}
\index{network.\+h@{network.\+h}!setup\+\_\+networking@{setup\+\_\+networking}}
\index{setup\+\_\+networking@{setup\+\_\+networking}!network.\+h@{network.\+h}}
\subsubsection[{\texorpdfstring{setup\+\_\+networking(void)}{setup_networking(void)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf M\+E\+M\+S\+P\+A\+CE} void setup\+\_\+networking (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\hypertarget{network_8h_a863429734cede00a72890923a53dad24}{}\label{network_8h_a863429734cede00a72890923a53dad24}


Code fragments if(!wifi\+\_\+station\+\_\+dhcpc\+\_\+stop()) printf( \char`\"{}\+E\+R\+R\+O\+R wifi\+\_\+station\+\_\+dhcpc\+\_\+stop() \textbackslash{}n \char`\"{});. 

if(!wifi\+\_\+set\+\_\+ip\+\_\+info( S\+T\+A\+T\+I\+O\+N\+\_\+\+IF , \&info)) printf( \char`\"{}\+E\+R\+R\+O\+R wifi\+\_\+set\+\_\+ip\+\_\+info()\textbackslash{}n\char`\"{});

if(!wifi\+\_\+station\+\_\+connect()) printf( \char`\"{}\+E\+R\+R\+O\+R wifi\+\_\+station\+\_\+connect()\textbackslash{}n\char`\"{});

if(!wifi\+\_\+station\+\_\+set\+\_\+auto\+\_\+connect( T\+R\+UE) ) printf(\char`\"{}\+E\+R\+R\+O\+R wifi\+\_\+station\+\_\+set\+\_\+auto\+\_\+connect(1)\textbackslash{}n\char`\"{}); I\+P4\+\_\+\+A\+D\+DR( \& info.\+ip , 192 , 168 , 200 , 123); I\+P4\+\_\+\+A\+D\+DR( \& info.\+netmask , 255 , 255 , 255 , 0); I\+P4\+\_\+\+A\+D\+DR( \& info.\+gw, 192 , 168 , 200 , 1); if(!wifi\+\_\+set\+\_\+ip\+\_\+info( S\+T\+A\+T\+I\+O\+N\+\_\+\+IF , \&info) ) printf( \char`\"{}\+E\+R\+R\+O\+R wifi\+\_\+set\+\_\+ip\+\_\+info() \textbackslash{}n \char`\"{}); if(!wifi\+\_\+station\+\_\+set\+\_\+auto\+\_\+connect( T\+R\+UE) ) printf( \char`\"{}\+E\+R\+R\+O\+R wifi\+\_\+station\+\_\+set\+\_\+auto\+\_\+connect(1) \textbackslash{}n \char`\"{}); Setup Wifi Network Credits\+: ideas borrowed from David Ogilvy(\+Metal\+Phreak) \begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}


Definition at line 165 of file network.\+c.



Referenced by setup().

\index{network.\+h@{network.\+h}!wifi\+\_\+event\+\_\+cb@{wifi\+\_\+event\+\_\+cb}}
\index{wifi\+\_\+event\+\_\+cb@{wifi\+\_\+event\+\_\+cb}!network.\+h@{network.\+h}}
\subsubsection[{\texorpdfstring{wifi\+\_\+event\+\_\+cb(\+System\+\_\+\+Event\+\_\+t $\ast$event\+\_\+p)}{wifi_event_cb(System_Event_t *event_p)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf M\+E\+M\+S\+P\+A\+CE} void wifi\+\_\+event\+\_\+cb (
\begin{DoxyParamCaption}
\item[{System\+\_\+\+Event\+\_\+t $\ast$}]{event\+\_\+p}
\end{DoxyParamCaption}
)}\hypertarget{network_8h_a33001f6e7c0326d6a8f20acbc62a1b3a}{}\label{network_8h_a33001f6e7c0326d6a8f20acbc62a1b3a}


W\+I\+FI Event Callback. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em $\ast$event\+\_\+p} & Wifi event structure This callback status code borrowed from David Ogilvy(\+Metal\+Phreak) \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}


Definition at line 80 of file network.\+c.



Referenced by setup\+\_\+networking().



\subsection{Variable Documentation}
\index{network.\+h@{network.\+h}!network\+\_\+init@{network\+\_\+init}}
\index{network\+\_\+init@{network\+\_\+init}!network.\+h@{network.\+h}}
\subsubsection[{\texorpdfstring{network\+\_\+init}{network_init}}]{\setlength{\rightskip}{0pt plus 5cm}int network\+\_\+init}\hypertarget{network_8h_a216a891e9fdcc4083d4fb922eacb63f0}{}\label{network_8h_a216a891e9fdcc4083d4fb922eacb63f0}


Definition at line 50 of file network.\+c.



Referenced by ntp\+\_\+setup(), and wifi\+\_\+event\+\_\+cb().

